<!DOCTYPE html>
<html lang="zh-cn">
    <head>
        <meta charset="UTF-8"/>
        <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
        <title>jquery.knob.js插件的使用-使用H5的data属性来设置参数</title>
    </head>
    <body>
        <input class="knob2" data-width="150" data-fgColor="green" data-bgColor="#303030" data-skin="tron" data-thickness=".3" data-min="200" data-max="600" value="200">
        <script src="http://cdn.bootcss.com/jquery/1.10.2/jquery.min.js"></script>
        <script src="js/jquery.knob.min.js"></script>
        <script>
            $(function() {
                $(".knob2").knob();
                // $(".knob").knob({
                //     max: 940,
                //     min: 500,
                //     thickness: .3,
                //     fgColor: '#2B99E6',
                //     bgColor: '#303030',
                //     'release':function(e){
                //         $('#img').animate({width:e});
                //     }
                // });
            });
        </script>
    </body>
</html>